Performs a bitwise OR operation.
BitOR ( value1, value2 [, value n] )
Parameters
value1 | The first number. |
value2 | The second number. |
value n | [optional] The nth number - up to 255 values can be specified. |
Return Value
Returns the two parameters bitwise-OR'ed together.
Remarks
Remember hex notation can be used for numbers.
Related
BitAND, BitNOT, BitShift, BitXOR, Hex
Example
$x = BitOR(3, 6) ;x == is 7 because 0011 OR 0110 = 0111
$x = BitOR(3, 15, 32) ;x == 47 because 0011 OR 1111 OR 00100000 = 00101111